package com.bestescortbedsystem.entity;

import java.io.Serializable;

/**
 * ses_hospitalinfo_department
 * @author 
 */

public class SesHospitalinfoDepartment implements Serializable {

    /**
     * ID,主键PK
     */
    private Long departmentid;

    /**
     * 科室名称
     */
    private String departmentname;

    /**
     * 医院表ID
     */
    private Long departmentHospitalinfoid;

    /**
     * 用户表ID(对应对接人ID)
     */
    private Long userid;

    /**
     * 股东ID
     */
    private Long usershareholderid;

    /**
     * 一级分销商ID
     */
    private Long userdistributorsid1;

    /**
     * 二级分销商ID
     */
    private Long userdistributorsid2;

    /**
     * 科室创建时间
     */
    private String departmentcreatetime;

    /**
     * 维修人员ID
     */
    private Long useraccendantid;

    /**
     * 收益分成
     */
    private Float departmentsharing;

    /**
     * 科室电话
     */
    private String departmentphone;

    private static final long serialVersionUID = 1L;

    public Long getDepartmentid() {
        return departmentid;
    }

    public void setDepartmentid(Long departmentid) {
        this.departmentid = departmentid;
    }

    public String getDepartmentname() {
        return departmentname;
    }

    public void setDepartmentname(String departmentname) {
        this.departmentname = departmentname;
    }

    public Long getDepartmentHospitalinfoid() {
        return departmentHospitalinfoid;
    }

    public void setDepartmentHospitalinfoid(Long departmentHospitalinfoid) {
        this.departmentHospitalinfoid = departmentHospitalinfoid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Long getUsershareholderid() {
        return usershareholderid;
    }

    public void setUsershareholderid(Long usershareholderid) {
        this.usershareholderid = usershareholderid;
    }

    public Long getUserdistributorsid1() {
        return userdistributorsid1;
    }

    public void setUserdistributorsid1(Long userdistributorsid1) {
        this.userdistributorsid1 = userdistributorsid1;
    }

    public Long getUserdistributorsid2() {
        return userdistributorsid2;
    }

    public void setUserdistributorsid2(Long userdistributorsid2) {
        this.userdistributorsid2 = userdistributorsid2;
    }

    public String getDepartmentcreatetime() {
        return departmentcreatetime;
    }

    public void setDepartmentcreatetime(String departmentcreatetime) {
        this.departmentcreatetime = departmentcreatetime;
    }

    public Long getUseraccendantid() {
        return useraccendantid;
    }

    public void setUseraccendantid(Long useraccendantid) {
        this.useraccendantid = useraccendantid;
    }

    public Float getDepartmentsharing() {
        return departmentsharing;
    }

    public void setDepartmentsharing(Float departmentsharing) {
        this.departmentsharing = departmentsharing;
    }

    public String getDepartmentphone() {
        return departmentphone;
    }

    public void setDepartmentphone(String departmentphone) {
        this.departmentphone = departmentphone;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesHospitalinfoDepartment other = (SesHospitalinfoDepartment) that;
        return (this.getDepartmentid() == null ? other.getDepartmentid() == null : this.getDepartmentid().equals(other.getDepartmentid()))
            && (this.getDepartmentname() == null ? other.getDepartmentname() == null : this.getDepartmentname().equals(other.getDepartmentname()))
            && (this.getDepartmentHospitalinfoid() == null ? other.getDepartmentHospitalinfoid() == null : this.getDepartmentHospitalinfoid().equals(other.getDepartmentHospitalinfoid()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getUsershareholderid() == null ? other.getUsershareholderid() == null : this.getUsershareholderid().equals(other.getUsershareholderid()))
            && (this.getUserdistributorsid1() == null ? other.getUserdistributorsid1() == null : this.getUserdistributorsid1().equals(other.getUserdistributorsid1()))
            && (this.getUserdistributorsid2() == null ? other.getUserdistributorsid2() == null : this.getUserdistributorsid2().equals(other.getUserdistributorsid2()))
            && (this.getDepartmentcreatetime() == null ? other.getDepartmentcreatetime() == null : this.getDepartmentcreatetime().equals(other.getDepartmentcreatetime()))
            && (this.getUseraccendantid() == null ? other.getUseraccendantid() == null : this.getUseraccendantid().equals(other.getUseraccendantid()))
            && (this.getDepartmentsharing() == null ? other.getDepartmentsharing() == null : this.getDepartmentsharing().equals(other.getDepartmentsharing()))
            && (this.getDepartmentphone() == null ? other.getDepartmentphone() == null : this.getDepartmentphone().equals(other.getDepartmentphone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDepartmentid() == null) ? 0 : getDepartmentid().hashCode());
        result = prime * result + ((getDepartmentname() == null) ? 0 : getDepartmentname().hashCode());
        result = prime * result + ((getDepartmentHospitalinfoid() == null) ? 0 : getDepartmentHospitalinfoid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getUsershareholderid() == null) ? 0 : getUsershareholderid().hashCode());
        result = prime * result + ((getUserdistributorsid1() == null) ? 0 : getUserdistributorsid1().hashCode());
        result = prime * result + ((getUserdistributorsid2() == null) ? 0 : getUserdistributorsid2().hashCode());
        result = prime * result + ((getDepartmentcreatetime() == null) ? 0 : getDepartmentcreatetime().hashCode());
        result = prime * result + ((getUseraccendantid() == null) ? 0 : getUseraccendantid().hashCode());
        result = prime * result + ((getDepartmentsharing() == null) ? 0 : getDepartmentsharing().hashCode());
        result = prime * result + ((getDepartmentphone() == null) ? 0 : getDepartmentphone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", departmentid=").append(departmentid);
        sb.append(", departmentname=").append(departmentname);
        sb.append(", departmentHospitalinfoid=").append(departmentHospitalinfoid);
        sb.append(", userid=").append(userid);
        sb.append(", usershareholderid=").append(usershareholderid);
        sb.append(", userdistributorsid1=").append(userdistributorsid1);
        sb.append(", userdistributorsid2=").append(userdistributorsid2);
        sb.append(", departmentcreatetime=").append(departmentcreatetime);
        sb.append(", useraccendantid=").append(useraccendantid);
        sb.append(", departmentsharing=").append(departmentsharing);
        sb.append(", departmentphone=").append(departmentphone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
